<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ include file="../../common/tag.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>分配角色</title>
<link href="<%=basePath %>/resource/css/frame.css" type=text/css rel=stylesheet>
</head>
<%
	String userId=String.valueOf(request.getAttribute("userId"));
%>
<body>
<table cellSpacing=1 cellPadding=3 width="99%" bgColor=#6298e1 border=0>
	  <tr>
	     <td height=25 class="specialTd">
	       	<span class="whiteWord">用户管理：分配角色</span>
	    </td>
	  </tr>
	  <tr>
	    <td  bgColor=#ebf2f9 height=30>
	    </td>
	 </tr>
</table>
<table class="spaceTable">
  <tr>
    <td height=10></td>
  </tr>
</table>
<form action="<%=basePath%>/role/assignRole.action" method="post">
<input type="hidden" id="userId" name="userId" value="<%=userId %>"/>
<table cellSpacing=1 cellPadding=3 width="99%" bgColor=#6298e1 border=0>
	<tr>
		<td class="headTd">选择</td>
		<td class="headTd">名称</td>
		<td class="headTd">描述</td>
	</tr>
	<s:iterator value="roleList">
	<tr onmouseover="this.style.backgroundColor = '#FFFFFF'"  onmouseout="this.style.backgroundColor = ''" id="detailRow">
		<td>
			<s:if test="CHECKID==null">
				<s:checkbox fieldValue="%{ID}" name="roleId" value="false" theme="simple"></s:checkbox>
			</s:if>
			<s:else>
				<s:checkbox fieldValue="%{ID}" name="roleId" value="true" theme="simple"></s:checkbox>
			</s:else>
		</td>
		<td>${ROLE_NAME}</td>
		<td>${ROLE_DESCRIPTION}</td>
	</tr>
	</s:iterator>
	<tr>
		<td colspan="4" class="submitTd">
			<input type="submit" name="Submit" value="确定">
			<input type="button" name="Submit2" value="返回" onclick="return history.go(-1);" >
		</td>
	</tr>
</table>
</form>
</body>
</html>